package Matches;

import java.util.regex.Pattern;

public class demo7 {
    public static void main(String[] args) {
        String s = "小诗诗ewqiebhq2w6ax小花花unjahfankfhb小熊熊";
        String result = s.replaceAll("[\\w&&[^_]]+", "vs");
        System.out.println(result);


        String[] arr = s.split("[\\w&&[^_]]+");
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
